package java_work24_10_13;
import java.util.Random;
class student {
    // 私有成员变量：学号、姓名、性别
    private int snumber;
    private String sname;
    private String gender;

    // 构造方法，用于创建学生对象并初始化其成员变量
    public student(int snumber, String sname, String gender) {
        this.snumber = snumber;
        this.sname = sname;
        this.gender = gender;
    }

    // 公共方法，用于返回包含学生信息的字符串
    public String show() {
        return "student{姓名:'" + sname + "',学号:'" + snumber + "',性别:'" + gender + "'}";
    }
}

